<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
	<center><h2>这是我第一个JSP页面,我是静态内容</h2></center> 
	<br>
	<% String title = "我是动态内容"; %>
	<center><h2><% out.println(title); %></h2></center>
	<center><h2><%=title %></h2></center>
</head>
<body>
	<% String fruit[] = {"西瓜","香蕉","苹果"}; %>
	<% double price[] = {10.,20,30}; %>
	
	<table border="1" style="margin-left:auto;margin-right:auto">
	<tr>
		<td><%=fruit[0] %></td><td><%=price[0] %></td>
	</tr>
	<tr>
		<td><%=fruit[1] %></td><td><%=price[1] %></td>
	</tr>
	<tr>
		<td><%=fruit[2] %></td><td><%=price[2] %></td>
	</tr>
	</table>
</body>
</html>